package eu.runelord.wjug.singleton;

public class Singleton1 implements ISingleton {
	private static ISingleton INSTANCE = new Singleton1();
	private String world;

	private Singleton1() {
	}

	public static ISingleton getINSTANCE() {
		return INSTANCE;
	}

	/* (non-Javadoc)
	 * @see eu.runelord.wjug.singleton.ISingleton#sayHello()
	 */
	public void sayHello() {
		System.out.println("Hello " + world);
	}

	/* (non-Javadoc)
	 * @see eu.runelord.wjug.singleton.ISingleton#getWorld()
	 */
	public String getWorld() {
		return world;
	}

	/* (non-Javadoc)
	 * @see eu.runelord.wjug.singleton.ISingleton#setWorld(java.lang.String)
	 */
	public void setWorld(String world) {
		this.world = world;
	}

}
